package com.yjymm.commonsdk.common.exception;

/**
 * @author panhaoxiong
 * @date 2021-02-07 11:04
 *
 * 业务异常，之后的所有异常都继承与此异常，用于区分
 */

public class BusinessException extends RuntimeException {

    private Integer code;
    private String message;

    public BusinessException(Integer code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
